import { createApp } from 'vue';
import App from './App.vue';
import router from './router/router';
// import { myThree } from './utils/three/index.js';
// import Three from './utils/three/index.js';
let app = createApp(App);
// 引入字体图标
import './assets/iconfont/iconfont.css';

// 批量引入注册全局组件
const components = import.meta.globEager('./unit/**/*.vue');
Object.keys(components).forEach(key => {
    let name = key.split('/').at(-2);
    let component = components[key].default;
    app.component(name, component);
});

app.use(router).mount('#app');
